import { Face } from '../constants';
import { Axis } from '../types';

const lockAxisMap = {
  [Axis.x]: [1, 3],
  [Axis.y]: [2, 4],
  [Axis.z]: [0, 5],
};
export function isLockAxis({
  axis,
  plankFaceId,
}: {
  axis: Axis;
  plankFaceId: number;
}) {
  return lockAxisMap[axis].includes(Number(plankFaceId));
}
